<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Devel::CheckOS - check what OS we&#39;re running on - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Devel-CheckOS - MetaCPAN" href="https://metacpan.org/dist/Devel-CheckOS/releases.rss" />
        <link rel="canonical" href="./Devel::CheckOS.html" />
        <meta name="description" content="check what OS we&#39;re running on" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Devel::CheckOS" />
<meta name="twitter:title"       content="Devel::CheckOS" />
<meta name="twitter:description" content="check what OS we&#39;re running on" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Devel::CheckOS.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Devel-CheckOS was released.">
      <span class="relatize">04 Feb 2023 22:09:56 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Devel-CheckOS">Devel-CheckOS</a>
  </li>
  <li>
    Module version: 1.96
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Devel-CheckOS/source/lib/Devel/CheckOS.pm">Source</a>
    (<a href="https://metacpan.org/dist/Devel-CheckOS/source/lib/Devel/CheckOS.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Devel-CheckOS/source/lib/Devel">Browse</a>
    (<a href="https://metacpan.org/dist/Devel-CheckOS/source/lib/Devel?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Devel-CheckOS/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Devel-CheckOS/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/DrHyde/perl-modules-Devel-CheckOS">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/DrHyde/perl-modules-Devel-CheckOS/issues">Issues</a>
      (0)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Devel-CheckOS+1.96" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/D/Devel-CheckOS.html?oncpan=1&amp;distmat=1&amp;version=1.96&amp;grade=2" style="color: #090">2780</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/D/Devel-CheckOS.html?oncpan=1&amp;distmat=1&amp;version=1.96&amp;grade=3" style="color: #900">1</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/D/Devel-CheckOS.html?oncpan=1&amp;distmat=1&amp;version=1.96&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/DCANTRELL/Devel-CheckOS-1.96">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Devel-CheckOS who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Devel-CheckOS-1.96/index.html">87.84% Coverage </a>
    </li>
    <li>
      License: unknown, open_source
    </li>
    <li>
      Perl: v5.6.0
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Devel-CheckOS/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/Devel-CheckOS-1.96.tar.gz">
      Download (<span itemprop="fileSize">36.21KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FDCANTRELL%2FDevel-CheckOS-1.96%2Flib%2FDevel%2FCheckOS.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Devel-CheckOS/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Devel-CheckOS/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Devel-CheckOS">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Devel-CheckOS">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Devel/CheckOS.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="DCANTRELL/Devel-CheckOS-1.96"
>1.96
  (DCANTRELL on 2023-02-04)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.95"
>1.95
  (DCANTRELL on 2022-10-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.94"
>1.94
  (DCANTRELL on 2022-07-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.93"
>1.93
  (DCANTRELL on 2022-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.92"
>1.92
  (DCANTRELL on 2022-04-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.91"
>1.91
  (DCANTRELL on 2022-04-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.90"
>1.90
  (DCANTRELL on 2022-04-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.87"
>1.87
  (DCANTRELL on 2021-05-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.86"
>1.86
  (DCANTRELL on 2021-05-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.85"
>1.85
  (DCANTRELL on 2020-10-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.84"
>1.84
  (DCANTRELL on 2020-10-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.83"
>1.83
  (DCANTRELL on 2020-02-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.82"
>1.82
  (DCANTRELL on 2020-02-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.81"
>1.81
  (DCANTRELL on 2018-01-23)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.80"
>1.80
  (DCANTRELL on 2017-05-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.79"
>1.79
  (DCANTRELL on 2016-10-30)</option>
<optgroup label="BackPAN">'
<option
  
  value="DCANTRELL/Devel-CheckOS-1.78"
>1.78
  (DCANTRELL on 2016-10-30)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.77"
>1.77
  (DCANTRELL on 2016-10-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.76"
>1.76
  (DCANTRELL on 2015-03-13)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.75"
>1.75
  (DCANTRELL on 2015-03-09)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.74"
>1.74
  (DCANTRELL on 2015-03-04)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.73"
>1.73
  (DCANTRELL on 2014-08-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.72"
>1.72
  (DCANTRELL on 2014-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.71"
>1.71
  (DCANTRELL on 2013-01-27)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.7"
>1.7
  (DCANTRELL on 2012-11-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.64"
>1.64
  (DCANTRELL on 2011-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.63"
>1.63
  (DCANTRELL on 2010-05-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.62"
>1.62
  (DCANTRELL on 2010-05-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.61"
>1.61
  (DCANTRELL on 2009-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.6"
>1.6
  (DCANTRELL on 2009-04-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.55"
>1.55
  (DCANTRELL on 2009-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.54"
>1.54
  (DCANTRELL on 2009-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.53"
>1.53
  (DCANTRELL on 2009-04-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.52"
>1.52
  (DCANTRELL on 2009-04-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.51"
>1.51
  (DCANTRELL on 2009-04-14)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.50"
>1.50
  (DCANTRELL on 2008-11-11)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.49_01"
>1.49_01 DEV
  (DCANTRELL on 2008-11-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.46"
>1.46
  (DCANTRELL on 2008-10-27)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.45"
>1.45
  (DCANTRELL on 2008-10-22)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.44"
>1.44
  (DCANTRELL on 2008-09-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.43"
>1.43
  (DCANTRELL on 2008-03-12)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.42"
>1.42
  (DCANTRELL on 2007-11-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.41"
>1.41
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.4"
>1.4
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.3"
>1.3
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.2"
>1.2
  (DCANTRELL on 2007-10-14)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.1"
>1.1
  (DCANTRELL on 2007-10-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.0"
>1.0
  (DCANTRELL on 2007-10-02)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.92"
>0.92
  (DCANTRELL on 2007-10-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.91"
>0.91
  (DCANTRELL on 2007-10-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.9"
>0.9
  (DCANTRELL on 2007-09-30)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/DCANTRELL/Devel-CheckOS-1.96/diff/' + encodeURIComponent(this.value) + '/lib/Devel/CheckOS.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="DCANTRELL/Devel-CheckOS-1.96"
>1.96
  (DCANTRELL on 2023-02-04)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.95"
>1.95
  (DCANTRELL on 2022-10-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.94"
>1.94
  (DCANTRELL on 2022-07-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.93"
>1.93
  (DCANTRELL on 2022-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.92"
>1.92
  (DCANTRELL on 2022-04-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.91"
>1.91
  (DCANTRELL on 2022-04-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.90"
>1.90
  (DCANTRELL on 2022-04-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.87"
>1.87
  (DCANTRELL on 2021-05-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.86"
>1.86
  (DCANTRELL on 2021-05-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.85"
>1.85
  (DCANTRELL on 2020-10-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.84"
>1.84
  (DCANTRELL on 2020-10-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.83"
>1.83
  (DCANTRELL on 2020-02-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.82"
>1.82
  (DCANTRELL on 2020-02-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.81"
>1.81
  (DCANTRELL on 2018-01-23)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.80"
>1.80
  (DCANTRELL on 2017-05-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.79"
>1.79
  (DCANTRELL on 2016-10-30)</option>
<optgroup label="BackPAN">'
<option
  
  value="DCANTRELL/Devel-CheckOS-1.78"
>1.78
  (DCANTRELL on 2016-10-30)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.77"
>1.77
  (DCANTRELL on 2016-10-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.76"
>1.76
  (DCANTRELL on 2015-03-13)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.75"
>1.75
  (DCANTRELL on 2015-03-09)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.74"
>1.74
  (DCANTRELL on 2015-03-04)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.73"
>1.73
  (DCANTRELL on 2014-08-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.72"
>1.72
  (DCANTRELL on 2014-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.71"
>1.71
  (DCANTRELL on 2013-01-27)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.7"
>1.7
  (DCANTRELL on 2012-11-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.64"
>1.64
  (DCANTRELL on 2011-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.63"
>1.63
  (DCANTRELL on 2010-05-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.62"
>1.62
  (DCANTRELL on 2010-05-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.61"
>1.61
  (DCANTRELL on 2009-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.6"
>1.6
  (DCANTRELL on 2009-04-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.55"
>1.55
  (DCANTRELL on 2009-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.54"
>1.54
  (DCANTRELL on 2009-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.53"
>1.53
  (DCANTRELL on 2009-04-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.52"
>1.52
  (DCANTRELL on 2009-04-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.51"
>1.51
  (DCANTRELL on 2009-04-14)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.50"
>1.50
  (DCANTRELL on 2008-11-11)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.49_01"
>1.49_01 DEV
  (DCANTRELL on 2008-11-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.46"
>1.46
  (DCANTRELL on 2008-10-27)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.45"
>1.45
  (DCANTRELL on 2008-10-22)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.44"
>1.44
  (DCANTRELL on 2008-09-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.43"
>1.43
  (DCANTRELL on 2008-03-12)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.42"
>1.42
  (DCANTRELL on 2007-11-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.41"
>1.41
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.4"
>1.4
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.3"
>1.3
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.2"
>1.2
  (DCANTRELL on 2007-10-14)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.1"
>1.1
  (DCANTRELL on 2007-10-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.0"
>1.0
  (DCANTRELL on 2007-10-02)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.92"
>0.92
  (DCANTRELL on 2007-10-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.91"
>0.91
  (DCANTRELL on 2007-10-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.9"
>0.9
  (DCANTRELL on 2007-09-30)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="./File::Find::Rule.html" title="File::Find::Rule" class="ellipsis">File::Find::Rule</a></li>
  <li><a href="https://metacpan.org/pod/File::Temp" title="File::Temp" class="ellipsis">File::Temp</a></li>
  <li><a href="https://metacpan.org/pod/Test::More" title="Test::More" class="ellipsis">Test::More</a></li>
  <li><a href="https://metacpan.org/pod/Test::Warnings" title="Test::Warnings" class="ellipsis">Test::Warnings</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Devel::CheckOS/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Devel%3A%3ACheckOS">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Devel-CheckOS">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/DCANTRELL/Devel-CheckOS-1.96/view/lib/Devel/CheckOS.pm">This version</a>
    </li>
    <li>
      <a href="./Devel::CheckOS.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/IOANR"><img src="https://www.gravatar.com/avatar/98ca06f241752dc58bf366e44e1f1b84?d=identicon&amp;s=20" title="IOANR" alt="IOANR"></a>
<a class="display-all" href="https://metacpan.org/author/ETHER"><img src="https://www.gravatar.com/avatar/bdc5cd06679e732e262f6c1b450a0237?d=identicon&amp;s=20" title="ETHER" alt="ETHER"></a>
<a class="display-all" href="https://metacpan.org/author/RRWO"><img src="https://www.gravatar.com/avatar/4a5274bc5d690ee3d619f044778771a7?d=identicon&amp;s=20" title="RRWO" alt="RRWO"></a>
<a class="display-all" href="https://metacpan.org/author/RWP"><img src="https://www.gravatar.com/avatar/7110eb2389e69a066d9d7cad7a1cc2bf?d=identicon&amp;s=20" title="RWP" alt="RWP"></a>
<a class="display-all" href="https://metacpan.org/author/ASB"><img src="https://www.gravatar.com/avatar/ccf1be90f776c7b5a260a5a935ee245e?d=identicon&amp;s=20" title="ASB" alt="ASB"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Devel-CheckOS/plussers">11 PAUSE users</a>
</div>
<div>
    6 non-PAUSE users
</div>
</div>
    </li>
    <li>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/DCANTRELL" class="author-name">David Cantrell</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Devel/CheckOS.pm&#39;" class="">
<option
  selected
  value="DCANTRELL/Devel-CheckOS-1.96"
>1.96
  (DCANTRELL on 2023-02-04)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.95"
>1.95
  (DCANTRELL on 2022-10-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.94"
>1.94
  (DCANTRELL on 2022-07-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.93"
>1.93
  (DCANTRELL on 2022-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.92"
>1.92
  (DCANTRELL on 2022-04-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.91"
>1.91
  (DCANTRELL on 2022-04-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.90"
>1.90
  (DCANTRELL on 2022-04-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.87"
>1.87
  (DCANTRELL on 2021-05-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.86"
>1.86
  (DCANTRELL on 2021-05-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.85"
>1.85
  (DCANTRELL on 2020-10-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.84"
>1.84
  (DCANTRELL on 2020-10-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.83"
>1.83
  (DCANTRELL on 2020-02-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.82"
>1.82
  (DCANTRELL on 2020-02-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.81"
>1.81
  (DCANTRELL on 2018-01-23)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.80"
>1.80
  (DCANTRELL on 2017-05-24)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.79"
>1.79
  (DCANTRELL on 2016-10-30)</option>
<optgroup label="BackPAN">'
<option
  
  value="DCANTRELL/Devel-CheckOS-1.78"
>1.78
  (DCANTRELL on 2016-10-30)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.77"
>1.77
  (DCANTRELL on 2016-10-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.76"
>1.76
  (DCANTRELL on 2015-03-13)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.75"
>1.75
  (DCANTRELL on 2015-03-09)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.74"
>1.74
  (DCANTRELL on 2015-03-04)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.73"
>1.73
  (DCANTRELL on 2014-08-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.72"
>1.72
  (DCANTRELL on 2014-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.71"
>1.71
  (DCANTRELL on 2013-01-27)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.7"
>1.7
  (DCANTRELL on 2012-11-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.64"
>1.64
  (DCANTRELL on 2011-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.63"
>1.63
  (DCANTRELL on 2010-05-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.62"
>1.62
  (DCANTRELL on 2010-05-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.61"
>1.61
  (DCANTRELL on 2009-04-25)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.6"
>1.6
  (DCANTRELL on 2009-04-21)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.55"
>1.55
  (DCANTRELL on 2009-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.54"
>1.54
  (DCANTRELL on 2009-04-16)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.53"
>1.53
  (DCANTRELL on 2009-04-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.52"
>1.52
  (DCANTRELL on 2009-04-15)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.51"
>1.51
  (DCANTRELL on 2009-04-14)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.50"
>1.50
  (DCANTRELL on 2008-11-11)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.49_01"
>1.49_01 DEV
  (DCANTRELL on 2008-11-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.46"
>1.46
  (DCANTRELL on 2008-10-27)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.45"
>1.45
  (DCANTRELL on 2008-10-22)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.44"
>1.44
  (DCANTRELL on 2008-09-29)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.43"
>1.43
  (DCANTRELL on 2008-03-12)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.42"
>1.42
  (DCANTRELL on 2007-11-20)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.41"
>1.41
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.4"
>1.4
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.3"
>1.3
  (DCANTRELL on 2007-11-07)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.2"
>1.2
  (DCANTRELL on 2007-10-14)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.1"
>1.1
  (DCANTRELL on 2007-10-05)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-1.0"
>1.0
  (DCANTRELL on 2007-10-02)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.92"
>0.92
  (DCANTRELL on 2007-10-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.91"
>0.91
  (DCANTRELL on 2007-10-01)</option>
<option
  
  value="DCANTRELL/Devel-CheckOS-0.9"
>0.9
  (DCANTRELL on 2007-09-30)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Devel-CheckOS">Devel-CheckOS-1.96</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage three &#10;
          • 32 direct dependents &#10;          • 329 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Devel-CheckOS-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Devel-CheckOS-1.96">
    <input type="hidden" name="author" value="DCANTRELL">
    <input type="hidden" name="distribution" value="Devel-CheckOS">
    <button type="submit" class="favorite highlight"><span>17</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Devel::CheckOS.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>17</span> ++</a>
</div>
   / <span>Devel::CheckOS</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Devel::CheckOS.html#NAME">NAME</a></li>
  <li><a href="./Devel::CheckOS.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Devel::CheckOS.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Devel::CheckOS.html#USING-IT-IN-Makefile.PL-or-Build.PL">USING IT IN Makefile.PL or Build.PL</a></li>
  <li><a href="./Devel::CheckOS.html#FUNCTIONS">FUNCTIONS</a>
    <ul>
      <li><a href="./Devel::CheckOS.html#Boolean-functions">Boolean functions</a>
        <ul>
          <li><a href="./Devel::CheckOS.html#os_is">os_is</a></li>
          <li><a href="./Devel::CheckOS.html#os_isnt">os_isnt</a></li>
        </ul>
      </li>
      <li><a href="./Devel::CheckOS.html#Fatal-functions">Fatal functions</a>
        <ul>
          <li><a href="./Devel::CheckOS.html#die_if_os_isnt">die_if_os_isnt</a></li>
          <li><a href="./Devel::CheckOS.html#die_if_os_is">die_if_os_is</a></li>
        </ul>
      </li>
      <li><a href="./Devel::CheckOS.html#And-some-utility-functions-...">And some utility functions ...</a>
        <ul>
          <li><a href="./Devel::CheckOS.html#die_unsupported">die_unsupported</a></li>
          <li><a href="./Devel::CheckOS.html#list_platforms">list_platforms</a></li>
          <li><a href="./Devel::CheckOS.html#list_family_members">list_family_members</a></li>
          <li><a href="./Devel::CheckOS.html#register_alias">register_alias</a></li>
        </ul>
      </li>
    </ul>
  </li>
  <li><a href="./Devel::CheckOS.html#PLATFORMS-SUPPORTED">PLATFORMS SUPPORTED</a></li>
  <li><a href="./Devel::CheckOS.html#BUGS-and-FEEDBACK">BUGS and FEEDBACK</a></li>
  <li><a href="./Devel::CheckOS.html#COMPATIBILITY">COMPATIBILITY</a></li>
  <li><a href="./Devel::CheckOS.html#DEPRECATIONS">DEPRECATIONS</a></li>
  <li><a href="./Devel::CheckOS.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./Devel::CheckOS.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Devel::CheckOS.html#SOURCE-CODE-REPOSITORY">SOURCE CODE REPOSITORY</a></li>
  <li><a href="./Devel::CheckOS.html#COPYRIGHT-and-LICENCE">COPYRIGHT and LICENCE</a></li>
  <li><a href="./Devel::CheckOS.html#HATS">HATS</a></li>
  <li><a href="./Devel::CheckOS.html#CONSPIRACY">CONSPIRACY</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Devel::CheckOS - check what OS we&#39;re running on</p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>A learned sage once wrote on IRC:</p>

<pre><code>   $^O is stupid and ugly, it wears its pants as a hat</code></pre>

<p>Devel::CheckOS provides a more friendly interface to $^O, and also lets you check for various OS &quot;families&quot; such as &quot;Unix&quot;, which includes things like Linux, Solaris, AIX etc.</p>

<p>It spares perl the embarrassment of wearing its pants on its head by covering them with a splendid Fedora.</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>    use Devel::CheckOS qw(os_is);
    print &quot;Hey, I know this, it&#39;s a Unix system\n&quot; if(os_is(&#39;Unix&#39;));

    print &quot;You&#39;ve got Linux 2.6\n&quot; if(os_is(&#39;Linux::v2_6&#39;));</code></pre>

<h1 id="USING-IT-IN-Makefile.PL-or-Build.PL"><a id="USING"></a>USING IT IN Makefile.PL or Build.PL</h1>

<p>If you want to use this from Makefile.PL or Build.PL, do not simply copy the module into your distribution as this may cause problems when PAUSE and search.cpan.org index the distro. Instead, use the use-devel-assertos script.</p>

<h1 id="FUNCTIONS">FUNCTIONS</h1>

<p>Devel::CheckOS implements the following functions, which load subsidiary OS-specific modules on demand to do the real work. They can all be exported by listing their names after <code>use Devel::CheckOS</code>. You can also export groups of functions thus:</p>

<pre><code>    use Devel::CheckOS qw(:booleans); # export the boolean functions
                                      # and &#39;die_unsupported&#39;
    
    use Devel::CheckOS qw(:fatal);    # export those that die on no match

    use Devel::CheckOS qw(:all);      # export everything exportable</code></pre>

<h2 id="Boolean-functions"><a id="Boolean"></a>Boolean functions</h2>

<h3 id="os_is">os_is</h3>

<p>Takes a list of OS names. If the current platform matches any of them, it returns true, otherwise it returns false. The names can be a mixture of OSes and OS families, eg ...</p>

<pre><code>    os_is(qw(Unix VMS)); # Unix is a family, VMS is an OS</code></pre>

<p>Matching is case-insensitive provided that Taint-mode is not enabled, so the above could also be written:</p>

<pre><code>    os_is(qw(unix vms));</code></pre>

<h3 id="os_isnt">os_isnt</h3>

<p>If the current platform matches (case-insensitively) any of the parameters it returns false, otherwise it returns true.</p>

<h2 id="Fatal-functions"><a id="Fatal"></a>Fatal functions</h2>

<h3 id="die_if_os_isnt">die_if_os_isnt</h3>

<p>As <code>os_is()</code>, except that it dies instead of returning false. The die() message matches what the CPAN-testers look for to determine if a module doesn&#39;t support a particular platform.</p>

<h3 id="die_if_os_is">die_if_os_is</h3>

<p>As <code>os_isnt()</code>, except that it dies instead of returning false.</p>

<h2 id="And-some-utility-functions-..."><a id="And"></a><a id="And-some-utility-functions"></a>And some utility functions ...</h2>

<h3 id="die_unsupported">die_unsupported</h3>

<p>This function simply dies with the message &quot;OS unsupported&quot;, which is what the CPAN testers look for to figure out whether a platform is supported or not.</p>

<h3 id="list_platforms">list_platforms</h3>

<p>When called in list context, return a list of all the platforms for which the corresponding Devel::AssertOS::* module is available. This includes both OSes and OS families, and both those bundled with this module and any third-party add-ons you have installed.</p>

<p>In scalar context, returns a hashref keyed by platform with the filename of the most recent version of the supporting module that is available to you. This behaviour is deprecated.</p>

<p>Unfortunately, on some platforms this list may have file case broken. eg, some platforms might return &#39;freebsd&#39; instead of &#39;FreeBSD&#39;. This is because they have case-insensitive filesystems so things should Just Work anyway.</p>

<p>This function does not work in taint-mode.</p>

<h3 id="list_family_members">list_family_members</h3>

<p>Takes the name of an OS &#39;family&#39; and returns a list of all its members. In list context, you get a list, in scalar context you get an arrayref.</p>

<p>If called on something that isn&#39;t a family, you get an empty list (or a ref to an empty array).</p>

<h3 id="register_alias">register_alias</h3>

<p>It takes two arguments, the first being an alias name, the second being the name of an OS. After the alias has been registered, any queries about the alias will return the appropriate result for the named OS.</p>

<p>It returns true unless you invoke it incorrectly or you attempt to change an existing alias.</p>

<p>Aliases don&#39;t work under taint-mode.</p>

<p>See <a href="https://metacpan.org/pod/distribution/Devel-CheckOS/lib/Devel/AssertOS/Extending.pod">Devel::AssertOS::Extending</a>.</p>

<h1 id="PLATFORMS-SUPPORTED"><a id="PLATFORMS"></a>PLATFORMS SUPPORTED</h1>

<p>To see the list of platforms for which information is available, run this:</p>

<pre><code>    perl -MDevel::CheckOS -e &#39;print join(&quot;, &quot;, Devel::CheckOS::list_platforms())&#39;</code></pre>

<p>These are the names of the underlying Devel::AssertOS::* modules which do the actual platform detection, so they have to be &#39;legal&#39; filenames and module names, which unfortunately precludes funny characters, so platforms like OS/2 are mis-spelt deliberately. Sorry.</p>

<p>Also be aware that not all of them have been properly tested. I don&#39;t have access to most of them and have had to work from information gleaned from <a href="https://metacpan.org/pod/perlport">perlport</a> and a few other places. For a complete list of OS families, see <a href="https://metacpan.org/pod/distribution/Devel-CheckOS/lib/Devel/CheckOS/Families.pod">Devel::CheckOS::Families</a>.</p>

<p>If you want to add your own OSes or families, see <a href="https://metacpan.org/pod/distribution/Devel-CheckOS/lib/Devel/AssertOS/Extending.pod">Devel::AssertOS::Extending</a> and please feel free to upload the results to the CPAN.</p>

<h1 id="BUGS-and-FEEDBACK"><a id="BUGS"></a>BUGS and FEEDBACK</h1>

<p>I welcome feedback about my code, including constructive criticism. Bug reports should be made using <a href="https://github.com/DrHyde/perl-modules-Devel-CheckOS/issues">https://github.com/DrHyde/perl-modules-Devel-CheckOS/issues</a>.</p>

<p>You will need to include in your bug report the exact value of $^O, what the OS is called (eg Windows Vista 64 bit Ultimate Home Edition), and, if relevant, what &quot;OS family&quot; it should be in and who wrote it.</p>

<p>If you are feeling particularly generous you can encourage me in my open source endeavours by buying me something from my wishlist: <a href="http://www.cantrell.org.uk/david/wishlist/">http://www.cantrell.org.uk/david/wishlist/</a></p>

<h1 id="COMPATIBILITY">COMPATIBILITY</h1>

<p>Version 1.90 made all matches case-insensitive. This is a change in behaviour, but if it breaks your code then your code was already broken, you just didn&#39;t know it.</p>

<h1 id="DEPRECATIONS">DEPRECATIONS</h1>

<p>At some point after April 2024 the <code>list_family_members</code> and <code>list_platforms</code> functions will stop being sensitive to whether they are called in list context or not, and will always return a list. From now until then calling them in non-list context will emit a warning. You can turn that off by setting <code>$Devel::CheckOS::NoDeprecationWarnings::Context</code> to a true value.</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p>$^O in <a href="variables/$&lt;digits&gt;-($1,-$2,-...).html">perlvar</a></p>

<p><a href="https://metacpan.org/pod/perlport">perlport</a></p>

<p><a href="https://metacpan.org/pod/Devel::AssertOS">Devel::AssertOS</a></p>

<p><a href="https://metacpan.org/pod/distribution/Devel-CheckOS/lib/Devel/AssertOS/Extending.pod">Devel::AssertOS::Extending</a></p>

<p><a href="https://metacpan.org/pod/Probe::Perl">Probe::Perl</a></p>

<p>The use-devel-assertos script</p>

<p><a href="https://metacpan.org/pod/Module::Install::AssertOS">Module::Install::AssertOS</a></p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>David Cantrell &lt;<i>david@cantrell.org.uk</i>&gt;</p>

<p>Thanks to David Golden for the name and ideas about the interface, and to the cpan-testers-discuss mailing list for prompting me to write it in the first place.</p>

<p>Thanks to Ken Williams, from whose <a href="./Module::Build.html">Module::Build</a> I lifted some of the information about what should be in the Unix family.</p>

<p>Thanks to Billy Abbott for finding some bugs for me on VMS.</p>

<p>Thanks to Matt Kraai for information about QNX.</p>

<p>Thanks to Kenichi Ishigaki and Gabor Szabo for reporting a bug on Windows, and to the former for providing a patch.</p>

<p>Thanks to Paul Green for some information about VOS.</p>

<p>Thanks to Yanick Champoux for a patch to let Devel::AssertOS support negative assertions.</p>

<p>Thanks to Brian Fraser for adding Android support.</p>

<p>Thanks to Dale Evans for Debian detection, a bunch of Mac OS X specific version detection modules, and perl 5.6 support.</p>

<p>Thanks to Graham Knop for fixing a build bug on perl 5.8.</p>

<h1 id="SOURCE-CODE-REPOSITORY"><a id="SOURCE"></a>SOURCE CODE REPOSITORY</h1>

<p><a>git://github.com/DrHyde/perl-modules-Devel-CheckOS.git</a></p>

<h1 id="COPYRIGHT-and-LICENCE"><a id="COPYRIGHT"></a>COPYRIGHT and LICENCE</h1>

<p>Copyright 2023 David Cantrell</p>

<p>This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It&#39;s up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.</p>

<h1 id="HATS">HATS</h1>

<p>I recommend buying a Fedora from <a href="http://hatsdirect.com/">http://hatsdirect.com/</a>.</p>

<h1 id="CONSPIRACY">CONSPIRACY</h1>

<p>This module is also free-as-in-mason software.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Devel::CheckOS, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Devel::CheckOS</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Devel::CheckOS</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Devel::CheckOS.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
